#ifndef RECOD_H_INCLUDED
#define RECOD_H_INCLUDED

#include "book.h"
#include "user.h"

struct recod_s
{
    struct recod_s* previous;
    struct recod_s* next;
    char* number;
    char* book_num;
    char* user_num;
    char* outdate;
    char* indate;
};

typedef struct recod_s recod;

recod* create_recods_list(char*);
void free_recod(recod*);
void show_recod(recod*);
recod* create_recod(user*, book*);
recod* search_recod(recod*, char*);
void return_book(recod*, book*, user*);

recod* interface_borrow_book(user*, book*);
void interface_return_book(user*, recod*, book*);
void show_borrowed_books(user*, recod*, book*);

#endif // RECOD_H_INCLUDED
